# -*- coding: utf-8 -*-
# @Time : 2022/2/8 14:46
from sqlalchemy.dialects.mysql import LONGTEXT
from Common.mysql import db, ma


# 新建表base_info_config
class BaseInfoConfig(db.Model):
    __tablename__ = 'base_info_config'  # 数据库名称
    id = db.Column(db.Integer, primary_key=True)
    systemName = db.Column(db.String(64))
    projectId = db.Column(db.String(64))
    projectName = db.Column(db.String(255))
    base_url_test = db.Column(db.String(255))
    base_url_develop = db.Column(db.String(255))
    base_url_release = db.Column(db.String(255))
    header = db.Column(LONGTEXT)
    create_time = db.Column(db.DATETIME)
    create_user = db.Column(db.String(64))
    update_time = db.Column(db.DATETIME)
    update_user = db.Column(db.String(64))


class BaseInfoConfigSchema(ma.SQLAlchemyAutoSchema):
    class Meta:
        model = BaseInfoConfig
